********************************
******* Set directories*********
********************************

* define the folder of the replication files as the stata directory *
* using the syntax in line 9 *


if c(username) == "XXXX" {
	cd "XXXX"
	global SOURCE  "XXXX"
	global Data_raw "$SOURCE\Data\Original_source_data"
	global Data_origin  "$SOURCE\Data\Original"
	global Data_generated "$SOURCE\Data\Generated"
	global do "$SOURCE\Code"
	global Results "$SOURCE\Results\Tables"
	global Figures "$SOURCE\Results\Figures"
	global Collabo_indiv "$SOURCE\Data\Collaboration_Indiv"
	}
	
********************************
***** Data - Preparation *******
********************************
do "$do/Preparation/1.Preparation Commune_data.do"
do "$do/Preparation/2.Preparation Canton_data.do" 
do "$do/Preparation/3.Preparation Departement_data.do" 
do "$do/Preparation/4.Preparation Diocese_data.do" 

********************************
***** Content - Main Text*******
********************************

**** Generate Tables ***
do "$do/Results/Table1a.do"
do "$do/Results/Table1b.do"
do "$do/Results/Table2.do"
do "$do/Results/Table3.do"
do "$do/Results/Table4.do"
do "$do/Results/Table5.do"


**** Generate Figures ****
do "$do/Results/Figure2.do"
do "$do/Results/Figure4a.do"
do "$do/Results/Figure4b.do"
do "$do/Results/Figure4c.do"
do "$do/Results/Figure5a.do"
do "$do/Results/Figure5b.do"
do "$do/Results/Figure6.do"
do "$do/Results/Figure7.do"
do "$do/Results/Figure8.do"


*******************************
***** Content - Appendix*******
*******************************
**** Generate Tables ***
do "$do/Results/TableA1.do"
do "$do/Results/TableA2a.do"
do "$do/Results/TableA2b.do"
do "$do/Results/TableA2c.do"
do "$do/Results/TableA3a.do"
do "$do/Results/TableA3b.do"
do "$do/Results/TableA3c.do"
do "$do/Results/TableA4.do"
do "$do/Results/TableA5.do"
do "$do/Results/TableA6.do"

**** Generate Figures ****
do "$do/Results/App_FigureB2.do"
do "$do/Results/App_FigureB3.do"
